package com.ruoyi.game.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.game.domain.bo.Pick3ReqBO;
import com.ruoyi.game.domain.entity.UserPick3Record;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 用户pick3投注信息Service接口
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
public interface IUserPick3RecordService 
{
    /**
     * 用户pick3投注
     * @param pick3ReqBO
     * @return
     */
    AjaxResult go(Pick3ReqBO pick3ReqBO);

    /**
     *  查询场次投注记录
     * @param roundNo
     * @return
     */
    List<UserPick3Record> getNotEndPick3Record(String roundNo);

    /**
     * 批量更新
     * @param userPick3Records
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    boolean updateBatch(List<UserPick3Record> userPick3Records);

    /**
     * 分页查询用户投注信息
     * @param userId
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<UserPick3Record> page(Long userId,int pageNo,int pageSize,int timeLimit);

    /**
     * 根据场次查询用户投注记录
     * @param userId
     * @param roundNo
     * @return
     */
    UserPick3Record findByRoundNo(Long userId,String roundNo);
}
